//
//  GroupProject.m
//  YYZB
//
//  Created by 信晨汇 on 2017/10/18.
//
//

#import "GroupProject.h"

@implementation GroupProject

- (instancetype)initWithDictionary:(NSDictionary *)d {
    
    GroupProject *item = [self class].new;
    item.isTop = [d[@"IsTop"] integerValue];
    item.ID = d[@"Id"];
    item.groupFee = d[@"GroupFee"];
    item.productAmount = d[@"ProductAmount"];
    item.isGroupBuy = [d[@"IsGroupBuy"] integerValue];
    item.unit = d[@"Unit"];
    item.remainAmount = [d[@"RemainAmount"] integerValue];
    item.priceId = d[@"PriceId"];
    item.groupBuyingAmount = d[@"GroupBuyingAmount"];
    item.saleAmount = d[@"SaleAmount"];
    item.price = d[@"Price"];
    item.scat1Id = d[@"Scat1Id"];
    item.averageFee = d[@"AverageFee"];

    return item;
}


@end
